package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 短信记录表
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_sms_log")
@Schema(name = "TzSmsLog", description = "短信记录表")
public class TzSmsLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户id")
    @TableField("user_id")
    private String userId;

    @Schema(description = "手机号码")
    @TableField("user_phone")
    private String userPhone;

    @Schema(description = "短信内容")
    @TableField("content")
    private String content;

    @Schema(description = "手机验证码")
    @TableField("mobile_code")
    private String mobileCode;

    @Schema(description = "短信类型  1:注册  2:验证")
    @TableField("type")
    private Integer type;

    @Schema(description = "发送时间")
    @TableField("rec_date")
    private LocalDateTime recDate;

    @Schema(description = "发送短信返回码")
    @TableField("response_code")
    private String responseCode;

    @Schema(description = "状态  1:有效  0：失效")
    @TableField("status")
    private Integer status;
}
